<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>旋转视差</title>
    <style>
      .container {
        width: 300px;
        height: 300px;
        margin: 300px auto;

        display: grid;
        grid-template:
          'A A B'
          'C D B'
          'C E E';
        grid-gap: 10px;
        animation: rotation 10s linear infinite;
      }

      .item:nth-child(1) {
        grid-area: A;
      }
      .item:nth-child(2) {
        grid-area: B;
      }
      .item:nth-child(3) {
        grid-area: C;
      }
      .item:nth-child(4) {
        grid-area: D;
      }
      .item:nth-child(5) {
        grid-area: E;
      }
      .item {
        overflow: hidden;
        border: 1px solid #000;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .item img {
        width: 260%;
        height: 260%;
        object-fit: cover;
        animation: rotation 10s linear infinite reverse;
      }
      @keyframes rotation {
        to {
          transform: rotate(360deg);
        }
      }
    </style>
  </head>
  <body>
    <div class="container">
      <div class="item">
        <img src="./static/im0.png" />
      </div>
      <div class="item">
        <img src="./static/im2.png" />
      </div>
      <div class="item">
        <img src="./static/im1.png" />
      </div>
      <div class="item">
        <img src="./static/im3.png" />
      </div>
      <div class="item">
        <img src="./static/im4.png" />
      </div>
    </div>
  </body>
</html>
